package com.dq.utils;


import java.util.HashMap;
import java.util.Map;


/**
 * @author
 * @describe  银行卡校验工具类
 *
 */

public class CardUtils {
    public static Map<String, String> bankName = new HashMap<>();

    private CardUtils() {
        bankName.put("CDB", "国家开发银行");
        bankName.put("ICBC", "中国工商银行");
        bankName.put("ABC", "中国农业银行");
        bankName.put("BOC", "中国银行");
        bankName.put("CCB", "中国建设银行");
        bankName.put("PSBC", "中国邮政储蓄银行");
        bankName.put("COMM", "交通银行");
        bankName.put("CMB", "招商银行");
        bankName.put("SPDB", "上海浦东发展银行");
        bankName.put("CIB", "兴业银行");
        bankName.put("HXBANK", "华夏银行");
        bankName.put("GDB", "广东发展银行");
        bankName.put("CMBC", "中国民生银行");
        bankName.put("CITIC", "中信银行");
        bankName.put("CEB", "中国光大银行");
        bankName.put("EGBANK", "恒丰银行");
        bankName.put("CZBANK", "浙商银行");
        bankName.put("BOHAIB", "渤海银行");
        bankName.put("SPABANK", "平安银行");
        bankName.put("SHRCB", "上海农村商业银行");
        bankName.put("YXCCB", "玉溪市商业银行");
        bankName.put("YDRCB", "尧都农商行");
        bankName.put("BJBANK", "北京银行");
        bankName.put("SHBANK", "上海银行");
        bankName.put("SHRCB", "上海农村商业银行");
        bankName.put("YXCCB", "玉溪市商业银行");
        bankName.put("YDRCB", "尧都农商行");
        bankName.put("JSBANK", "江苏银行");
        bankName.put("HZCB", "杭州银行");
        bankName.put("NJCB", "南京银行");
        bankName.put("NBBANK", "宁波银行");
        bankName.put("HSBANK", "徽商银行");
        bankName.put("CSCB", "长沙银行");
        bankName.put("CDCB", "成都银行");
        bankName.put("CQBANK", "重庆银行");
        bankName.put("DLB", "大连银行");
        bankName.put("NCB", "南昌银行");
        bankName.put("FJHXBC", "福建海峡银行");
        bankName.put("HKB", "汉口银行");
        bankName.put("WZCB", "温州银行");
        bankName.put("QDCCB", "青岛银行");
        bankName.put("TZCB", "台州银行");
        bankName.put("JXBANK", "嘉兴银行");
        bankName.put("CSRCB", "常熟农村商业银行");
        bankName.put("NHB", "南海农村信用联社");
        bankName.put("CZRCB", "常州农村信用联社");
        bankName.put("H3CB", "内蒙古银行");
        bankName.put("SXCB", "绍兴银行");
        bankName.put("SDEB", "顺德农商银行");
        bankName.put("WJRCB", "吴江农商银行");
        bankName.put("ZBCB", "齐商银行");
        bankName.put("GYCB", "贵阳市商业银行");
        bankName.put("ZYCBANK", "遵义市商业银行");
        bankName.put("HZCCB", "湖州市商业银行");
        bankName.put("DAQINGB", "龙江银行");
        bankName.put("JINCHB", "晋城银行");
        bankName.put("ZJTLCB", "浙江泰隆商业银行");
        bankName.put("GDRCC", "广东省农村信用社联合社");
        bankName.put("DRCBCL", "东莞农村商业银行");
        bankName.put("MTBANK", "浙江民泰商业银行");
        bankName.put("GCB", "广州银行");
        bankName.put("LYCB", "辽阳市商业银行");
        bankName.put("JSRCU", "江苏省农村信用联合社");
        bankName.put("LANGFB", "廊坊银行");
        bankName.put("CZCB", "浙江稠州商业银行");
        bankName.put("DYCB", "德阳商业银行");
        bankName.put("JZBANK", "晋中市商业银行");
        bankName.put("BOSZ", "苏州银行");
        bankName.put("GLBANK", "桂林银行");
        bankName.put("URMQCCB", "乌鲁木齐市商业银行");
        bankName.put("CDRCB", "成都农商银行");
        bankName.put("ZRCBANK", "张家港农村商业银行");
        bankName.put("BOD", "东莞银行");
        bankName.put("LSBANK", "莱商银行");
        bankName.put("BJRCB", "北京农村商业银行");
        bankName.put("TRCB", "天津农商银行");
        bankName.put("SRBANK", "上饶银行");
        bankName.put("FDB", "富滇银行");
        bankName.put("CRCBANK", "重庆农村商业银行");
        bankName.put("ASCB", "鞍山银行");
        bankName.put("NXBANK", "宁夏银行");
        bankName.put("BHB", "河北银行");
        bankName.put("HRXJB", "华融湘江银行");
        bankName.put("ZGCCB", "自贡市商业银行");
        bankName.put("YNRCC", "云南省农村信用社");
        bankName.put("JLBANK", "吉林银行");
        bankName.put("DYCCB", "东营市商业银行");
        bankName.put("KLB", "昆仑银行");
        bankName.put("ORBANK", "鄂尔多斯银行");
        bankName.put("XTB", "邢台银行");
        bankName.put("JSB", "晋商银行");
        bankName.put("TCCB", "天津银行");
        bankName.put("BOYK", "营口银行");
        bankName.put("JLRCU", "吉林农信");
        bankName.put("SDRCU", "山东农信");
        bankName.put("XABANK", "西安银行");
        bankName.put("HBRCU", "河北省农村信用社");
        bankName.put("NXRCU", "宁夏黄河农村商业银行");
        bankName.put("GZRCU", "贵州省农村信用社");
        bankName.put("FXCB", "阜新银行");
        bankName.put("HBHSBANK", "湖北银行黄石分行");
        bankName.put("ZJNX", "浙江省农村信用社联合社");
        bankName.put("XXBANK", "新乡银行");
        bankName.put("HBYCBANK", "湖北银行宜昌分行");
        bankName.put("LSCCB", "乐山市商业银行");
        bankName.put("TCRCB", "江苏太仓农村商业银行");
        bankName.put("BZMD", "驻马店银行");
        bankName.put("GZB", "赣州银行");
        bankName.put("WRCB", "无锡农村商业银行");
        bankName.put("BGB", "广西北部湾银行");
        bankName.put("GRCB", "广州农商银行");
        bankName.put("JRCB", "江苏江阴农村商业银行");
        bankName.put("BOP", "平顶山银行");
        bankName.put("TACCB", "泰安市商业银行");
        bankName.put("CGNB", "南充市商业银行");
        bankName.put("CCQTGB", "重庆三峡银行");
        bankName.put("XLBANK", "中山小榄村镇银行");
        bankName.put("HDBANK", "邯郸银行");
        bankName.put("KORLABANK", "库尔勒市商业银行");
        bankName.put("BOJZ", "锦州银行");
        bankName.put("QLBANK", "齐鲁银行");
        bankName.put("BOQH", "青海银行");
        bankName.put("YQCCB", "阳泉银行");
        bankName.put("SJBANK", "盛京银行");
        bankName.put("FSCB", "抚顺银行");
        bankName.put("ZZBANK", "郑州银行");
        bankName.put("SRCB", "深圳农村商业银行");
        bankName.put("BANKWF", "潍坊银行");
        bankName.put("JJBANK", "九江银行");
        bankName.put("JXRCU", "江西省农村信用");
        bankName.put("HNRCU", "河南省农村信用");
        bankName.put("GSRCU", "甘肃省农村信用");
        bankName.put("SCRCU", "四川省农村信用");
        bankName.put("GXRCU", "广西省农村信用");
        bankName.put("SXRCCU", "陕西信合");
        bankName.put("WHRCB", "武汉农村商业银行");
        bankName.put("YBCCB", "宜宾市商业银行");
        bankName.put("KSRB", "昆山农村商业银行");
        bankName.put("SZSBK", "石嘴山银行");
        bankName.put("HSBK", "衡水银行");
        bankName.put("XYBANK", "信阳银行");
        bankName.put("NBYZ", "鄞州银行");
        bankName.put("ZJKCCB", "张家口市商业银行");
        bankName.put("XCYH", "许昌银行");
        bankName.put("JNBANK", "济宁银行");
        bankName.put("CBKF", "开封市商业银行");
        bankName.put("WHCCB", "威海市商业银行");
        bankName.put("HBC", "湖北银行");
        bankName.put("BOCD", "承德银行");
        bankName.put("BODD", "丹东银行");
        bankName.put("JHBANK", "金华银行");
        bankName.put("BOCY", "朝阳银行");
        bankName.put("LSBC", "临商银行");
        bankName.put("BSB", "包商银行");
        bankName.put("LZYH", "兰州银行");
        bankName.put("BOZK", "周口银行");
        bankName.put("DZBANK", "德州银行");
        bankName.put("SCCB", "三门峡银行");
        bankName.put("AYCB", "安阳银行");
        bankName.put("ARCU", "安徽省农村信用社");
        bankName.put("HURCB", "湖北省农村信用社");
        bankName.put("HNRCC", "湖南省农村信用社");
        bankName.put("NYNB", "广东南粤银行");
        bankName.put("LYBANK", "洛阳银行");
        bankName.put("NHQS", "农信银清算中心");
        bankName.put("CBBQS", "城市商业银行资金清算中心");
    }

    private static class CardUtilsHolder {
        private static CardUtils holder = new CardUtils();
    }

    public static CardUtils getInstance() {
        return CardUtilsHolder.holder;
    }

    public String getBankStr(String bankStr) {
        if (bankName.containsKey(bankStr)) {
            return bankName.get(bankStr);
        }
        return "";
    }
}